#ifndef _ADS1115_H
#define _ADS1115_H

#include "i2c.h"

#define	CC_ADC_DAT				100
#define	DDS2_ADC_DAT			500

#define ADS1115_ADDR_MES 0x90
#define ADS1115_ADDR_DDS 0x92

#define AIN0_GND  0x04
#define AIN1_GND  0x05
#define AIN2_GND  0x06
#define AIN3_GND  0x07
#define AIN0_AIN1 0x00
#define AIN0_AIN3 0x01
#define AIN1_AIN3 0x02
#define AIN2_AIN3 0x03

unsigned char ADS1115_GetADC_SRC(i2c_interface* pI2C,unsigned char channel,unsigned short* pValue,unsigned char DeviceAddr);
unsigned char ADS1115_GetADC(i2c_interface* pI2C,unsigned char channel,unsigned short* pValue,unsigned char DeviceAddr);
unsigned char ADS1115_GetADC_10KUP(i2c_interface* pI2C,unsigned char channel,unsigned short* pValue,unsigned char DeviceAddr);
unsigned char ADS1115_GetADC_2048mV(i2c_interface* pI2C,unsigned char channel,unsigned short* pValue,unsigned char DeviceAddr);

#endif	//_ADS1115_H
